#include <Arduino.h>

// put function declarations here:
int horz_pin = A1;
int vert_pin = A0;
int sel_pin = 3;

void setup()
{
  // put your setup code here, to run once:
  pinMode(horz_pin, INPUT);
  pinMode(vert_pin, INPUT);
  pinMode(sel_pin, INPUT_PULLUP);
  Serial.begin(9600);
}

void loop()
{
  // put your main code here, to run repeatedly:
  int horz_val = analogRead(horz_pin);
  int vert_val = analogRead(vert_pin);
  int sel_pressed = digitalRead(sel_pin) == LOW;

  Serial.print("horz:");
  Serial.print(horz_val);
  Serial.print("\tvert:");
  Serial.print(vert_val);
  Serial.print("\t sel:");
  Serial.println(sel_pressed);

  delay(100);
}

// put function definitions here: